malevolent program

nouns

a computer program designed to have undesirable or harmful effects
is a type of (narrower)
(computer science) a sequence of instructions that a computer can interpret and execute
"the program required several hundred lines of code"